package com.abvnet.project.water.project.controller;

import com.abvnet.framework.web.controller.BaseController;
import com.abvnet.project.water.project.domain.RateBar;
import com.abvnet.project.water.project.service.IProjectInfoService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/project/projectStatis")
public class ProjectStatisController extends BaseController {

    private String prefix = "project/projectStatis";

    @Autowired
    private IProjectInfoService projectInfoService;

    @RequiresPermissions("project:projectStatis:list")
    @GetMapping()
    public String projectStatis(ModelMap mmap) {
        RateBar rateBar = projectInfoService.selectRepRateList();
        mmap.put("rateBar", rateBar);
        return prefix + "/list";
    }
}
